<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;

class CoolNumberController extends BaseController
{
    /**
     * @param Request $request
     */
    public function __construct(Request $request)
    {
        parent::__construct($request);
    }

    /**
     * Created at 2021/12/9 17:13
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function changeUserUuid(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/change_user_uuid', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:14
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @return \Illuminate\Http\JsonResponse
     */
    public function getTypes()
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/get_types'));
    }

    /**
     * Created at 2021/12/9 17:14
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function listAllCoolNumber(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_all_cool_number', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:15
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function listUuidUseLog(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_uuid_use_log', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:15
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function listUuidUserUseLog(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_uuid_user_use_log', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:16
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function addCoolNumber(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/add', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:16
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function listGoods(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_goods', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:16
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function editGoods(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/add_edit_goods', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:17
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function listNotUseCoolNumber(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_not_use_cool_number', $request->all()));
    }

    /**
     * Created at 2021/12/9 17:14
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @return \Illuminate\Http\JsonResponse
     */
    public function getEffectiveTime()
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/get_effective_time'));
    }

    /**
     * Created at 2021/12/10 10:51
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @return \Illuminate\Http\JsonResponse
     */
    public function listTag()
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_tag'));
    }

    /**
     * Created at 2021/12/10 18:49
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function editTag(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/edit_tag', $request->all()));
    }

    /**
     * Created at 2021/12/13 15:06
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @return \Illuminate\Http\JsonResponse
     */
    public function listUserCanBuyGoods()
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/list_user_can_buy_goods'));
    }

    /**
     * Created at 2021/12/13 15:10
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function give(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/cool_number/give', $request->all()));
    }
}
